/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class HumanBodySensor {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010020028';
    }

    get categoryName() {
        return '\u4eba\u4f53\u5b58\u5728\u4f20\u611f\u5668';
    }

    getAlarmCondition(params) {
        return command({
            method: 'getAlarmCondition',
            methodId: 'pqYhVFQA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAlarmSwitch(params) {
        return command({
            method: 'getAlarmSwitch',
            methodId: 'phEq1Df9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBuzzerSwitch(params) {
        return command({
            method: 'getBuzzerSwitch',
            methodId: 'pdN73uIM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getDistance(params) {
        return command({
            method: 'getDistance',
            methodId: 'pkp1X0Vl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getExistDelayedTime(params) {
        return command({
            method: 'getExistDelayedTime',
            methodId: 'p0crQl5m',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getExistStatus(params) {
        return command({
            method: 'getExistStatus',
            methodId: 'p3deL4kK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIlluminationStrength(params) {
        return command({
            method: 'getIlluminationStrength',
            methodId: 'pz93pKA5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIndicatorSwitch(params) {
        return command({
            method: 'getIndicatorSwitch',
            methodId: 'ptRSbspn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMaxTriggerDistance(params) {
        return command({
            method: 'getMaxTriggerDistance',
            methodId: 'pj7xkPyU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMinTriggerDistance(params) {
        return command({
            method: 'getMinTriggerDistance',
            methodId: 'pXZuumJw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getNotExistDelayedTime(params) {
        return command({
            method: 'getNotExistDelayedTime',
            methodId: 'pBTQg5sP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmCondition(params) {
        return command({
            method: 'setAlarmCondition',
            methodId: 'p1vFBb0z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAlarmSwitch(params) {
        return command({
            method: 'setAlarmSwitch',
            methodId: 'peHyqSnk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBuzzerSwitch(params) {
        return command({
            method: 'setBuzzerSwitch',
            methodId: 'pUPQO3xo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setExistDelayedTime(params) {
        return command({
            method: 'setExistDelayedTime',
            methodId: 'pZgRtGZR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIndicatorSwitch(params) {
        return command({
            method: 'setIndicatorSwitch',
            methodId: 'ppAXiVR1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMaxTriggerDistance(params) {
        return command({
            method: 'setMaxTriggerDistance',
            methodId: 'pghzWYvE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMinTriggerDistance(params) {
        return command({
            method: 'setMinTriggerDistance',
            methodId: 'pDrhEqcI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setNotExistDelayedTime(params) {
        return command({
            method: 'setNotExistDelayedTime',
            methodId: 'pGox7xhW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default HumanBodySensor;
